Skip to content

Dashboard search, display most recent dashboards first, display who created dashboard#259

Merged
vkarpov15 merged 2 commits into
mainfrom
vkarpov15/dashboards
Jun 9, 2026
Merged

Dashboard search, display most recent dashboards first, display who created dashboard#259
vkarpov15 merged 2 commits into
mainfrom
vkarpov15/dashboards

Conversation

@vkarpov15

Copy link
Copy Markdown
Member

Fix #253

image

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio Ready Ready Preview, Comment Jun 9, 2026 9:08pm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5acddb8729

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread backend/actions/Dashboard/getDashboards.js
Comment thread backend/actions/Dashboard/createDashboard.js Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the Dashboards UX and metadata by adding client-side search, ordering dashboards with the most recently created first, and persisting/displaying additional dashboard metadata (creator info and last evaluation time). It also adds/updates tests to validate the new sorting and persistence behavior.

Changes:

  • Add dashboard list search UI with match highlighting and empty-state messaging.
  • Sort dashboards newest-first and persist lastEvaluatedAt on evaluation completion.
  • Store creator metadata (createdById + createdBy) when dashboards are created, with new test coverage.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
test/Dashboard.getDashboards.test.js Adds tests for newest-first ordering, legacy createdAt derivation, and creator persistence.
test/Dashboard.getDashboard.results.test.js Verifies lastEvaluatedAt is persisted to the dashboard when evaluations complete.
frontend/src/dashboards/dashboards.js Adds search state, filtering, highlighting helpers, date/user formatting, and inserts new dashboards at the top.
frontend/src/dashboards/dashboards.html Adds the search input, “no matches” state, switches list rendering to filtered dashboards, and displays metadata fields.
express.js Propagates initiating user info into request internals for downstream actions.
backend/next.js Propagates initiating user info into action params for Next.js deployments.
backend/netlify.js Propagates initiating user info into action params for Netlify deployments.
backend/db/dashboardSchema.js Adds creator + evaluation fields and attempts legacy createdAt backfill via a query post-hook.
backend/actions/Dashboard/getDashboards.js Sorts dashboards by newest first and returns lean objects.
backend/actions/Dashboard/getDashboard.js Updates dashboard lastEvaluatedAt when an evaluation finishes.
backend/actions/Dashboard/createDashboard.js Persists creator fields when creating a new dashboard.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread backend/db/dashboardSchema.js
Comment thread backend/actions/Dashboard/createDashboard.js Outdated
Comment thread frontend/src/dashboards/dashboards.js
Comment thread frontend/src/dashboards/dashboards.html
Comment thread express.js
Comment thread backend/next.js
Comment thread backend/netlify.js
@vkarpov15 vkarpov15 merged commit 1e8d6af into main Jun 9, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard search

2 participants